package com.zy.imagineCommunity.entity;

public class Post {

    Integer id;

    String title;

    String content;

    String type;

    Integer userId;

    String createTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public Post(Integer id, String title, String content, String type, Integer userId, String createTime) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.type = type;
        this.userId = userId;
        this.createTime = createTime;
    }

    public Post() {

    }

    @Override
    public String toString() {
        return "Post{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", type='" + type + '\'' +
                ", userId=" + userId +
                ", createTime='" + createTime + '\'' +
                '}';
    }

}
